#ifndef UI_LISTVIEWITEM_H
#define UI_LISTVIEWITEM_H

#include <q3listview.h>
#include "gui_export.h"

/**
 * An item in a hierarchical list view with a nice folder icon.
 */
class GUI_EXPORT UI_ListViewItem : public Q3ListViewItem {
public:
    UI_ListViewItem(Q3ListView *par, const QString& label,
                    bool open=false, int id=-1);
    UI_ListViewItem(UI_ListViewItem *par, const QString& label,
                    bool open=false, int id=-1);

    QString getFullPath();
    QString text(int column) const;

    QString getLabel() const {
        return label;
    }

    void setOpen(bool o);
    void setup();

    void setId(int id) {
        this->id = id;
    }
    int getId() {
        return id;
    }

private:
    UI_ListViewItem* par;
    QString label;
    QString object;
    int id;
};

#endif

